package com.iqiyi.pps.epg.api.server.iservice;

import com.iqiyi.mams.hedvig.http.mediatype.ExtendedMediaType;

import javax.ws.rs.*;
import javax.ws.rs.core.MediaType;

/**
 * Created by karkarrotxu on 2017/4/17.
 */
@Path("/broadcast")
@Produces({ExtendedMediaType.APPLICATION_X_THRIFT})
public interface BroadcastApiService {
    @POST
    @Path("/control")
    @Produces(MediaType.APPLICATION_JSON)
    public String setBroadcastControl(@FormParam("channelId") long channelId,
                                      @FormParam("params") String params,
                                      @FormParam("assignToPrograms") String assignToPrograms
    );

    @GET
    @Path("/controls")
    @Produces(MediaType.APPLICATION_JSON)
    public String getBroadcastControl(@QueryParam("channelId") long channelId);

    @POST
    @Path("/controlall")
    @Produces(MediaType.APPLICATION_JSON)
    public String setBroadcastControlAll(@FormParam("channelId") long channelId,
                                         @FormParam("platforms") String platforms,
                                         @FormParam("params") String params,
                                         @FormParam("assignToPrograms") String assignToPrograms
    );

}
